package com.qy.main;


import com.qy.tree.RBTreeDemo;

public class Demo {
    public static void main(String[] args) {

        RBTreeDemo<Integer,Integer> rb = new RBTreeDemo<>();
//        int[] array = {10,12,7,9,5,13,14,17,20,21};
        int[] array = {10,13,11,6,9};
        for(int i : array){
            rb.put(i,i);
        }

        rb.prePrint();
        System.out.println();
//        System.out.println(rb.remove(13));
        System.out.println(rb.remove(10));
        System.out.println();
        rb.prePrint();

    }
}
